package demo1;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author liangzai
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        CardDemo cardDemo = new CardDemo();
        List<Crad> list = new ArrayList();
        cardDemo.buycrad(list);
        System.out.println(list);
        System.out.println("=============");
        cardDemo.shuffle(list);
        System.out.println(list);

        List<List <Crad>> player = new ArrayList<>();
        cardDemo.play(player,list);
        System.out.println();
        for (int i = 0; i < 3; i++) {
            System.out.println("player1"+player.get(i));
        }
        System.out.println("剩下的牌：");
        System.out.println();
        System.out.println(list);
    }
}
